package com.api;


import org.flywaydb.core.Flyway;
import org.flywaydb.core.api.MigrationInfo;
import org.flywaydb.core.api.configuration.FluentConfiguration;

public class FlywayApiTest {
    /**
     * 使用APi 调用，需要有
     * @param args
     */
    public static void main(String[] args) {

        String url1="jdbc:mysql://localhost:3306/test?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true";
        String user1="root";
        String password1="root";


        FluentConfiguration flyway1 = Flyway.configure();
        flyway1.dataSource(url1,user1,password1);
        Flyway f1= flyway1.load();
        MigrationInfo[] all = f1.info().all();


    }

}
